package com.exception.enu;

/**
 * Created by Administrator on 2017/7/20 0020.
 * 自定义枚举类
 */
public enum ExceptionEnum {
    UNKNOW_ERROR(-1,"系统内部错误"),
    PARA_ERROR(-2,"参数错误{请检查参数个数和参数类型}");
    private Integer code;
    private String msg;

    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
